<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  created() {
    console.log('Home创建')
  },
  destroyed() {
    console.log('Home销毁')
  },
  //激活状态
  activated() {
    console.log('Home== activated')
  },
  //失活状态
  deactivated() {
    console.log('Home== deactivated')
  }
}
</script>
